<html>
 <head>
 <script type="text/javascript">
function setCookie() {
    document.cookie = "test1"
    document.cookie = "test2"
}
</script>
 </head>
 <body onload="setCookie()">
 </body>
</html>
